using Godot;

namespace CSharpLearning.flappy_bird.controller;

public partial class BattleController : Node
{
    //单例
    public static BattleController Instance{private set; get;}

    // 小鸟的引用
    private Bird _bird;
    public override void _Ready()
    {
        base._Ready();
        if (BattleController.Instance == null)
        {
            BattleController.Instance = this;
        }
        else
        {
            Logger.SWarn("BattleController instance already exists");
            this.QueueFree();
        }
    }
    
    
    public Bird GetBird()
    {
        return null;
    }
}